#include "StdAfx.h"
#include "DrumSynth.h"


CDrumSynth::CDrumSynth(void)
{
}


CDrumSynth::~CDrumSynth(void)
{
}



void CDrumSynth::Start()
{
    m_wavePlayer.SetSampleRate(GetSampleRate());
    m_wavePlayer.Start();
}


void CDrumSynth::SetNote(CNote *note)
{
}


bool CDrumSynth::Generate()
{
    bool valid = m_wavePlayer.Generate();

    m_frame[0] = m_wavePlayer.Frame(0);
    m_frame[1] = m_frame[0];

    return valid;
}